home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / s / sas_utilities / sasutilities01.dms / in.adf / Commands / Compare.doc < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.8 KB  |  57 lines

  1. Compare(V37)                                         Compare(V37)
  2.  
  3.  
  4. FORMAT
  5.        COMPARE [[FILE1] file] [[FILE2] file] [[SKIP1] n] [[SKIP2]
  6.        n] [QUIET]
  7.  
  8. TEMPLATE
  9.        FILE1,FILE2,SKIP1/N,SKIP2/N,QUIET/S
  10.  
  11. PURPOSE
  12.        To perform a byte-by-byte comparison of two files.
  13.  
  14. SPECIFICATION
  15.        COMPARE compares the two files given by FILE1 and file2.
  16.        If only one file is given, the default input is used for
  17.        the other. It is an error if both FILE1 and FILE2 2 are
  18.        omitted. COMPARE makes no comment if the files are the
  19.        same; if they differ, it reports the byte (in both decimal
  20.        and hex) and line number at which the difference occured,
  21.        or, that one file is an initial subsequence of the other.
  22.        SKIP1 and SKIP2 are initial decimal byte offsets into
  23.        FILE1 and FILE2 respectively. If the QUIET switch is used,
  24.        COMPARE will print nothing for differing files; it will
  25.        set the condition flag only. QUIET does not suppress the
  26.        printing of error messages.
  27.  
  28.        The condition flag, RC, is set to 0 for identical files, 5
  29.        (WARN) for different files, and 10 (ERROR) for bogus argu-
  30.        ments like inaccessible files.
  31.  
  32. EXAMPLE
  33.        If you want to express an offset in octal or hexadecimal,
  34.        you can use EVAL (see EVAL(AmigaDOS)):
  35.  
  36.            1> COMPARE Foo Bar `EVAL 0x1FE`
  37.  
  38. SEE ALSO
  39.        COMMON(V37)
  40.  
  41. UNIX EQUIVALENT
  42.        cmp(1)
  43.  
  44. AUTHOR
  45.        Torsten Poulin (torsten@diku.dk)
  46.  
  47. UNRESTRICTIONS
  48.        COMPARE is free; anyone may redistribute copies of COMMPARE
  49.        to anyone under the terms stated in the GNU General Public
  50.        Licence, a copy of which accompanies each copy of COMPARE.
  51.  
  52.        Torsten Poulin encourages you to improve and extend COM-
  53.        PARE, and urges that you contribute your extensions to the
  54.        world.
  55.  
  56. Compare version 37.5       21 June 1993
  57.